package com.itheima.d8_extends_application;

public class Test {
    public static void main(String[] args) {
        // 目标：搞清楚继承的好处。
        Teacher t = new Teacher();
        t.setName("老师");
        t.setSkill("java");

        t.printInfo();

        consultant c = new consultant();
        c.setSkill("python");
        c.setName("张三");
        c.printInfo();

    }
}
